package com.framwork.core.base.em;

/**
 * @author ：james.liu
 * @date ：Created in 2022/3/4 16:48
 * @description：
 * @version: 1.0
 */
public enum RequestMappering {

    // accesstoken
    open_apis_auth_v3_app_access_token_internal("open-apis/auth/v3/app_access_token/internal",
            "获取 app_access_token（企业自建应用）", null),
    open_apis_auth_v3_app_access_token("open-apis/auth/v3/app_access_token", "获取 app_access_token（应用商店应用）", null),
    open_apis_auth_v3_tenant_access_token_internal("open-apis/auth/v3/tenant_access_token/internal", "获取 " +
            "tenant_access_token（企业自建应用）", null),
    open_apis_auth_v3_tenant_access_token("open-apis/auth/v3/tenant_access_token",
            "获取 tenant_access_token（应用商店应用", null),


    // 通讯录
    open_apis_contact_v3_users_find_by_department("open-apis/contact/v3/users/find_by_department", "获取部门直属用户列表", null),
    ////  部门
    open_apis_contact_v3_departments_department_id_children("open-apis/contact/v3/departments/{0}/children",
            "获取子部门列表", ""),
    open_apis_contact_v3_departments_parent("open-apis/contact/v3/departments/parent",
            "获取父部门信息", ""),
    open_apis_contact_v3_departments_department_id("open-apis/contact/v3/departments/{0}", "获取单个部门信息", ""),

    open_apis_contact_v3_departments_search("open-apis/contact/v3/departments/search", "搜索部门", "");


    /**
     * 配置信息
     *
     * @param mapperName 接口地址
     * @param mapperDesc 接口描述
     */
    RequestMappering(String mapperName, String mapperDesc, String route) {
        this.mapperDesc = mapperDesc;
        this.mapperName = mapperName;
        this.route = route;
    }

    /**
     * 接口地址
     */
    private String mapperName;

    /**
     * 接口描述
     */
    private String mapperDesc;
    /**
     * 组合路径
     */
    private String route;

    public String getMapperName() {
        return mapperName;
    }

    public void setMapperName(String mapperName) {
        this.mapperName = mapperName;
    }

    public String getMapperDesc() {
        return mapperDesc;
    }

    public void setMapperDesc(String mapperDesc) {
        this.mapperDesc = mapperDesc;
    }

    public String getRoute() {
        return route;
    }

    public void setRoute(String route) {
        this.route = route;
    }
}
